<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        <title>Blues Case Study</title>

        <?php echo $styleSheets; ?>

        <style type="text/css">@import url("../css/defaultstyle.css");</style>
        <link type="text/css" href="../css/defaultstyle.css"></link>

        <script type="text/javascript">
            var registeredOnLoad   = [];
            var registeredOnUnload = [];

            function registerOnLoadFunction(functionName) {
                registeredOnLoad.push(functionName);
            }

            function registerOnUnloadFunction(functionName) {
                registerOnUnload.push(functionName);
            }

            function callLoadFunctions() {
                for (functionNameKey in registeredOnLoad) {
                    registeredOnLoad[functionNameKey]();
                }
            }

            function callUnloadFunctions() {
                for (functionNameKey in registeredOnUnload) {
                    registeredOnUnload[functionNameKey]();
                }
            }
        </script>

        <?php echo $scripts; ?>

    </head>
    <body onLoad="callLoadFunctions();" onUnload="callUnloadFunctions();">

        <div id="bodycontainer">
            <!--  Title and stuff -->
            <div id="maincontainer">
                <?php
                foreach ($views as $view) {
                    echo ($view);
                }
                ?>
            </div>

            <div id="footer">&copy; SHUMedia 2011</div>
        </div>
    </body>
</html>